package com.ebelter.seneo.ui.fragments.finpsw;


import android.widget.EditText;

import com.ebelter.btcomlib.utils.ViewUtils;
import com.ebelter.seneo.R;
import com.ebelter.seneo.ui.fragments.BaseFragment;
import com.ebelter.seneo.ui.views.psw.PassWordLayout;


//填写密码
public class Fill_Psw_Fragment extends BaseFragment {


//    PassWordLayout psw1;
//    PassWordLayout psw2;

    EditText findpsw_ed1;
    EditText findpsw_ed2;
    @Override
    protected int setLayoutResouceId() {
        return R.layout.fill_psw_fly;
    }

    @Override
    protected void initView() {
//        psw1=findViewById(R.id.psw1);
//        psw2=findViewById(R.id.psw2);

        findpsw_ed1=findViewById(R.id.findpsw_ed1);
        findpsw_ed2=findViewById(R.id.findpsw_ed2);


        ViewUtils.setEdInputFilters2(findpsw_ed1);
        ViewUtils.setEdInputFilters2(findpsw_ed2);
    }



    public String getPsw1() {
        return findpsw_ed1.getText().toString();
    }
    public String getPsw2() {
        return findpsw_ed2.getText().toString();
    }

    public void clearPsw() {
        if (findpsw_ed1!=null){
            findpsw_ed1.setText("");
        }
        if (findpsw_ed2!=null){
            findpsw_ed2.setText("");
        }
    }
}
